cmake_minimum_required(VERSION 3.4.1)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(opencvlib SHARED IMPORTED)
set_target_properties(opencvlib PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../frameworkc/libs/${ANDROID_ABI}/libopencv_java4.so)
add_library(
        opencv
        SHARED
        bitmat.h
        bitmat.cpp
        native_lib.cpp
        IDCardReader.h
        IDCardReader.cpp
)
find_library(
        log-lib
        log
)
target_link_libraries(
        opencv
        opencvlib
        ${log-lib}
        -ljnigraphics -llog -landroid -lOpenSLES -latomic -lm
)
